package com.ctgu.expresshelper.dao;

import com.ctgu.expresshelper.entity.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ShopDao {

    @Select("select * from Shop")
    List<Shop> getAllShop();

    @Select("select * from shop where id=#{id}")
    Shop selectShopById(int id);
}
